using System;
using System.Collections.Generic;
using System.Text;
using Shc.Sql;
using Shc.Json;
namespace CLZ.Data
{
	public static class TableViewShoppingCartTempGroup
	{
		public const string Table = "View_ShoppingCartTempGroup";
		public const string MembersID = "MembersID";
		public const string CartDay = "CartDay";
		public const string MemberName = "MemberName";
		public const string MemberNo = "MemberNo";
		public const string Contact = "Contact";
		public const string TelePhone = "TelePhone";
		public const string CartCount = "CartCount";
	}
	
	[Serializable]
	public class BaseViewShoppingCartTempGroup
		: IDbSessionEntity, IJsonClass
	{
		int? m_MembersID;
		/// <summary>
        /// 
        /// </summary>
        public int? MembersID
        {
            get { return m_MembersID; }
            set { m_MembersID = value; }
        }
		
		string m_CartDay;
		/// <summary>
        /// 
        /// </summary>
        public string CartDay
        {
            get { return m_CartDay; }
            set { m_CartDay = value; }
        }
		
		string m_MemberName;
		/// <summary>
        /// 
        /// </summary>
        public string MemberName
        {
            get { return m_MemberName; }
            set { m_MemberName = value; }
        }
		
		string m_MemberNo;
		/// <summary>
        /// 
        /// </summary>
        public string MemberNo
        {
            get { return m_MemberNo; }
            set { m_MemberNo = value; }
        }
		
		string m_Contact;
		/// <summary>
        /// 
        /// </summary>
        public string Contact
        {
            get { return m_Contact; }
            set { m_Contact = value; }
        }
		
		string m_TelePhone;
		/// <summary>
        /// 
        /// </summary>
        public string TelePhone
        {
            get { return m_TelePhone; }
            set { m_TelePhone = value; }
        }
		
		int? m_CartCount;
		/// <summary>
        /// 
        /// </summary>
        public int? CartCount
        {
            get { return m_CartCount; }
            set { m_CartCount = value; }
        }
		
		
		#region IDbSessionEntity Members
		public void ReadDBData(RowDataReader reader)
        {
            m_MembersID = reader[TableViewShoppingCartTempGroup.MembersID];
            m_CartDay = reader[TableViewShoppingCartTempGroup.CartDay];
            m_MemberName = reader[TableViewShoppingCartTempGroup.MemberName];
            m_MemberNo = reader[TableViewShoppingCartTempGroup.MemberNo];
            m_Contact = reader[TableViewShoppingCartTempGroup.Contact];
            m_TelePhone = reader[TableViewShoppingCartTempGroup.TelePhone];
            m_CartCount = reader[TableViewShoppingCartTempGroup.CartCount];
        }
		
		public void WriteDBData(RowDataWriter writer)
        {
        }

        public void SetIdentityAfterInsert(DBObject idd)
        {
        }
		
		public string TableName
        {
            get { return TableViewShoppingCartTempGroup.Table; }
        }
		#endregion
		
		
		#region IJsonClass Members

        public void JsonDeSerializeObj(JsonHashTable hashToRead)
        {
             m_MembersID = hashToRead["MembersID"];
			 
             m_CartDay = hashToRead["CartDay"];
			 
             m_MemberName = hashToRead["MemberName"];
			 
             m_MemberNo = hashToRead["MemberNo"];
			 
             m_Contact = hashToRead["Contact"];
			 
             m_TelePhone = hashToRead["TelePhone"];
			 
             m_CartCount = hashToRead["CartCount"];
			 
        }

        public void JsonSerializeObj(JsonHashTable hashToFill)
        {
            hashToFill["MembersID"] = MembersID;
			
            hashToFill["CartDay"] = CartDay;
			
            hashToFill["MemberName"] = MemberName;
			
            hashToFill["MemberNo"] = MemberNo;
			
            hashToFill["Contact"] = Contact;
			
            hashToFill["TelePhone"] = TelePhone;
			
            hashToFill["CartCount"] = CartCount;
			
        }

        #endregion
		
	}
}
